<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

class CreateCompanyInfoTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('company_info', function (Blueprint $table) {
            $table->id();
            $table->string("name")->comment("公司名");
            $table->string("phone")->comment("联系电话");
            $table->string("mobile")->nullable()->comment("联系电话");
            $table->string("email")->nullable()->comment("邮箱");
            $table->string("copy_right")->nullable()->comment("备案号");
            $table->string("address")->nullable()->comment("地址");
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('company_info');
    }
}
